import { default as request, cloud } from '@/framework/utils/request'

export function pageApi(query) {
  return request({
    url: cloud.interfacePlatform + '/interfaceCameraMonitor/page',
    method: 'get',
    params: query
  })
}

export function addApi(query) {
  return request({
    url: cloud.interfacePlatform + '/interfaceCameraMonitor/add',
    method: 'post',
    data: query
  })
}

export function editApi(query) {
  return request({
    url: cloud.interfacePlatform + '/interfaceCameraMonitor/edit',
    method: 'post',
    data: query
  })
}

export function deleteApi(query) {
  return request({
    url: cloud.interfacePlatform + '/interfaceCameraMonitor/delete',
    method: 'post',
    data: query
  })
}

export function detailApi(params) {
  return request({
    url: cloud.interfacePlatform + '/interfaceCameraMonitor/detail',
    method: 'get',
    params
  })
}

export function connectApi(query) {
  return request({
    url: cloud.interfacePlatform + '/interfaceCameraMonitor/connect',
    method: 'post',
    data: query
  })
}
